/*
 * ClientEntryList.hpp
 *
 *  Created on: 28.03.2011
 *      Author: niea
 */

#ifndef CLIENTENTRYLIST_HPP_
#define CLIENTENTRYLIST_HPP_

#include "ClientEntry.hpp"
#include <vector>
#include <pthread.h>

namespace efs
{

class ClientEntryList
{
public:
	ClientEntryList();
	virtual ~ClientEntryList();

	bool addEntry(ClientEntry const& entry);
	void removeEntry(ClientEntry const& entry);
	std::vector<ClientEntry> getList();
	void print();

private:
	pthread_mutex_t m_mutex;
	std::vector<ClientEntry> m_entry_list;
};

}

#endif /* CLIENTENTRYLIST_HPP_ */
